<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.sekati.services.Urchin - SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.sekati.services" rel="up"/><link href="../../../com/sekati/time/FPS.html" title="Class com.sekati.time.FPS" rel="prev"/><link href="../../../com/sekati/services/SOAPEvent.html" title="Class com.sekati.services.SOAPEvent" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.sekati.services.Urchin</h1><div class="type_hierachy"><ul><li><strong>com.sekati.services.Urchin</strong></li></ul></div><div class="type_description"><h2>Description</h2><p>
 Easily add Google Analytics (Urchin) tracking of Flash events
 
 <pre> Usage:
 <span class="comment">// Add google analytics javascript to your swf html page:</span>
 &lt;script src=<span class="str_const">"http://www.google-analytics.com/urchin.js"</span> type=<span class="str_const">"text/javascript"</span>&gt;&lt;/script&gt;
 &lt;script type=<span class="str_const">"text/javascript"</span>&gt;
 _uacct = <span class="str_const">"UA-000000-0"</span>;
 urchinTracker();
 &lt;/script&gt;
 <span class="comment">// enable swLiveConnect:</span>
 fscommand (<span class="str_const">"swLiveConnect"</span>, <span class="str_const">"true"</span>);
 </pre>
 </p><h4>See Also</h4><ul class="extra_info"><li> <a href="http://www.google.com/support/analytics/bin/answer.py?answer=27243&hl=en">http://www.google.com/support/analytics/bin/answer.py?answer=27243&hl=en</a>
 </li></ul></div><div class="type_indexes"><div class="method_index"><h2>Method Index</h2><a href="#getBase" title="static public function getBase():String">getBase()</a>, <a href="#setBase" title="static public function setBase(base:String):Void">setBase()</a>, <a href="#track" title="static public function track(pg:String):Void">track()</a></div></div><div class="type_details"><div class="method_detail_list"><h2>Method Detail</h2><div class="method_details alt_row"><a name="setBase"></a><h3>setBase</h3><code class="method_synopsis">static public function <strong class="method_name">setBase</strong>(base:<span class="unresolved_type_name">String</span>):<span class="void_name">Void</span></code><div class="method_info"><p>
 set site base
 </p><h4>Return</h4><p class="extra_info"> Void
 <pre> Usage:
  Urchin.setBase(<span class="str_const">"homepage"</span>); <span class="comment">// set optional webroot [default: "site"]</span>
 </pre>
	 </p></div></div><div class="method_details"><a name="getBase"></a><h3>getBase</h3><code class="method_synopsis">static public function <strong class="method_name">getBase</strong>():<span class="unresolved_type_name">String</span></code><div class="method_info"><p>
 return site base
 </p><h4>Return</h4><p class="extra_info"> String
	 </p></div></div><div class="method_details alt_row"><a name="track"></a><h3>track</h3><code class="method_synopsis">static public function <strong class="method_name">track</strong>(pg:<span class="unresolved_type_name">String</span>):<span class="void_name">Void</span></code><div class="method_info"><p>
 track a page event
 </p><h4>Return</h4><p class="extra_info"> Void
 <pre> Usage
 	Urchin.track(<span class="str_const">"projects"</span>); <span class="comment">// register '/homepage/projects'</span>
 	Urchin.track(<span class="str_const">"projects/page1"</span>);	<span class="comment">// register '/homepage/projects/page1'</span>
 </pre>
	 </p></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.sekati.services" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="Urchin.as.html" title="Source code of com.sekati.services.Urchin" class="button">Source</a></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>